package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @Auther: Tangguo
 * @Date: 2023-05-06  10:28
 */
public interface ReportService {
    /**
     * 根据时间区间统计营业额
     * @param begin:
     * @param end:
     * @return TurnoverReportVO
     */
    TurnoverReportVO getTurnover(LocalDate begin, LocalDate end);

    /**
     * 用户数据统计
     * @param begin:
     * @param end:
     * @return UserReportVO
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单数据统计
     * @param begin:
     * @param end:
     * @return OrderReportVO
     */
    OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);

    /**
     * 销量排名前10统计
     * @param begin:
     * @param end:
     * @return SalesTop10ReportVO
     */
    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);

    /**
     * 导出近30天的运营数据报表
     * @param response:
     * @return void
     */
    void exportBusinessDate(HttpServletResponse response);
}
